package com.zcc.makingfriend.untils;

import com.zcc.makingfriend.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @author zcc
 */
public class ShiroUtil {
    public static AccountProfile getProfile(){

        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}

